<?php
namespace app\index\controller;
use think\Controller;
use think\Db;
use think\Request;

class Partner extends Controller{
    public function index(){
        $partner=Db::name('partner')
            ->alias('a')
            ->join('attachment','a.thumb=attachment.id')
            ->select();
        $this->assign('partner',$partner);


        return view("partner");
    }

}